package hotciv.view;

import hotciv.framework.Game;
import hotciv.standard.GameObserverImpl;

import javax.swing.JTextField;

import minidraw.framework.Drawing;
import minidraw.framework.DrawingEditor;
import minidraw.framework.DrawingView;
import minidraw.framework.Factory;

public class HotCivViewFactory implements Factory {
	private Game game;
	public HotCivViewFactory(Game g)
	{
		game = g;
	}


	@Override
	public DrawingView createDrawingView(DrawingEditor editor) 
	{
		return new MapView(editor, game);
	}

	public Drawing createDrawing( DrawingEditor editor ) {
		    return new GameObserverImpl( editor, game );
	}
  
	public JTextField createStatusField( DrawingEditor editor ) 
	{
		JTextField f = new JTextField("Hot Civ ");
		f.setEditable(false);
		return f;
	}

}
